<%@ page import="com.xiaolin.utils.dbUtils" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="com.xiaolin.dao.impl.UserDAOImpl" %>
<%@ page import="com.xiaolin.bean.Cart" %>
<%@ page import="com.xiaolin.dao.impl.CartDaoImpl" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/1/7
  Time: 13:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>购物车处理</title>
</head>
<body>
<%
    Connection conn = dbUtils.getConnection();
    CartDaoImpl cartDao = new CartDaoImpl();
    int id = Integer.parseInt(request.getParameter("id"));
    String user = request.getParameter("user");
    cartDao.deleteById(conn,id,user);
    out.print("<h1>删除成功！</h1>");
%>
</body>
</html>
